package com.yc.bean;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 题目维度关联实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("questionDimensions")
public class QuestionDimension {
    
    /**
     * 关联ID
     */
    @TableId(value = "relationId", type = IdType.AUTO)
    private Long relationId;
    
    /**
     * 题目ID
     */
    @TableField("questionId")
    private Long questionId;
    
    /**
     * 维度ID
     */
    @TableField("dimensionId")
    private Long dimensionId;
    
    /**
     * 权重（用于计算该题目在此维度中的分数占比）
     */
    @TableField("weight")
    private BigDecimal weight;
    
    /**
     * 创建时间
     */
    @TableField(value = "createTime", fill = FieldFill.INSERT)
    private LocalDateTime createTime;
} 